//
//  OpenInvoiceInfoCell.m
//  NtoccShipper
//
//  Created by mac on 2019/11/20.
//  Copyright © 2019 zhuchongjin. All rights reserved.
//

#import "OpenInvoiceInfoCell.h"
@interface OpenInvoiceInfoCell()
@property (nonatomic,strong) CJLabel *labInvoiceHeader;
@property (nonatomic,strong) CJLabel *labTaxNum;
@property (nonatomic,strong) CJLabel *labBankName;
@property (nonatomic,strong) CJLabel *labBankIDNum;
@property (nonatomic,strong) CJLabel *labRegisterAddr;
@property (nonatomic,strong) CJLabel *labRegisterPhone;
//@property (nonatomic,strong) CJLabel *fieldPartType;
//迭代去掉 21-08-13
//@property (nonatomic,strong) CJLabel *labOpenInvoicetype; // 开票方式
//@property (nonatomic,strong) CJLabel *labRealityPerson;
@property (nonatomic,strong) CJLabel *lanMoRenInvoice;
@end

@implementation OpenInvoiceInfoCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)setCellInfoWithModel:(OpenInvoiceInfoModel *)model{
    
    self.labInvoiceHeader.text = model.invoiceTitle;
    self.labTaxNum.text = model.taxRegistrationNumber;
    self.labBankName.text = model.bankName;
    self.labBankIDNum.text = model.accountNumber;
    self.labRegisterAddr.text = model.registeredAddress;
    self.labRegisterPhone.text = model.registeredFixedPhone;
//    self.labOpenInvoicetype.text = model.typeName;
//    self.labRealityPerson.text = model.receiverUserName;
    self.lanMoRenInvoice.text = model.isInvoiceDefault == 1 ? @"是":@"否";

}

- (void)delectCommonReciveAddress{
    if (self.blockDelete) {
        self.blockDelete(@"");
    }
}
- (void)edtionCommonReciveAddress{
    if (self.blockEditor) {
        self.blockEditor(@"");
    }
}
@end
